package com.cityp.service.impl;

import com.cityp.bean.User;
import com.cityp.mapper.UserListMapper;
import com.cityp.service.UserListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

@Service
public class UserListListServiceImpl implements UserListService {
    @Autowired
    private UserListMapper getUserListMapper;

    @Override
    public List<User> getAll(){
        return getUserListMapper.getAll();
    }

    @Override
    public int updateUser(User user) {
        return getUserListMapper.updateUser(user);
    }

    @Override
    public int deleteUser(String id,int state){
        return getUserListMapper.deleteUser(id,state);
    }

    @Override
    public int changePassword(String pass, String id) {
        return getUserListMapper.changePassword(pass,id);
    }

    @Override
    public List<User> getFreeze() {
        return getUserListMapper.getFreeze();
    }


}
